<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
    <link rel="stylesheet" href="../javascripts/lib/jqm/jquery.mobile-1.4.3.min.css"/>
    <link rel="stylesheet" href="../stylesheets/main.css"/>
    <script src="../javascripts/lib/jq/jquery-2.1.1.min.js"></script>
    <script src="../javascripts/lib/jqm/jquery.mobile-1.4.3.min.js"></script>
    <title><%=title%></title>
  </head>
  <body>
    <div class="a" data-role="page" id="page">
        <script type="text/javascript">
          $("#wcpay").click(function(){
              alert('sssss');
              //alert(window.location.href);
              WeixinJSBridge.invoke('getBrandWCPayRequest',{"appId":"wx631f54c7933d782f",
                  "timeStamp":"1411972092761",
                  "nonceStr":"A0SkGe4Qi8bG5yMVUxxxrB4wMb9CfJkI",
                  "package":"bank_type=WX&body=%E6%B1%9F%E8%AF%97%E4%B8%B9%E9%A1%BF&fee_type=1&input_charset=UTF-8&notify_url=http%3A%2F%2F117.78.6.144%2Fwcpay%2Fnotification%2Fnotify&out_trade_no=4114887652973170000&partner=1219234901&spbill_create_ip=218.241.206.126&total_fee=1&sign=C99F51EDD422D0456A2669F4BABC8FF6",
                  "signType":"SHA1",
                  "paySign":"466c1527926e7fee509990808462cd8da3a8ee2c"},function(res){
                  alert(<%-payinfo%>)
                  if(res.err_msg=="get_brand_wcpay_request:ok"){
                      $("#wcpayend").click();
                  }
               });
          });
        </script>
      <div data-role="header" id="header">
      </div>
      <div data-role="content" data-theme="c" >
          <div class="orderdetail">
            <div class="orderdetail-title">订单详情</div>
            <div class="gooddetail">
              <img src="../images/goods.png" alt="">
              <label>商品描述:<%=good.describe%></label><span></span>
              <label>折扣:<%=good.discount%></label><span></span>
            </div>
            <div class="orderdetail-price">
              总价:￥<%=good.price%>
            </div>
          </div>
          <a href="/wcpay/pay_end?tradeno=<%=tradeno%>" id="wcpayend"></a>
          <input type="button" name="" id="wcpay" value="微信支付22" >

      </div>
    </div>
  </body>
</html>


<!--









appID:wx631f54c7933d782f
timeStamp:1411972671672
nonceStr:bhHnTsveq8QYDfI7JwU79EY7rLuTGsNC
signType:SHA1
paySign:c7e5daff7aa1eff9d80b87183d152f8084c3c32e bank_type=WX&body=%E6%B1%9F%E8%AF%97%E4%B8%B9%E9%A1%BF&fee_type=1&input_charset=UTF-8¬ify_url=http%3A%2F%2Fwww.qq.com&out_trade_no=41150179962130100000&partner=1219234901&spbill_create_ip=127.0.0.1&total_fee=1&sign=B5EF5F50042623BCDE581EBE87ACAD2C

-->














